from django.contrib import admin
from django_cas_ng.views import LoginView, LogoutView
from django.urls import path
from django.urls import path
from django.conf.urls import include, url
from django.templatetags.static import static
from todo_backend import settings

# 配置todo业务接口
from rest_framework import routers
from todo_business.views import *

router = routers.DefaultRouter()

router.register(r'todo_tasks', TodoTaskViewSet)
router.register(r'todo_items', TodoItemViewSet)
router.register(r'todo_category', TodoCategoryViewSet)
router.register(r'share_link', ShareLinkViewSet)

urlpatterns = [
    url(r'^share_link/', ShareLinkAPI.as_view()),
    url(r'^share_list/', ShareListAPI.as_view()),
    url(r'^', include(router.urls)),

]

 
 
